<?php
/**
 * Created by 项目.
 * User: xuguopeng
 * Date: 2020-06-11
 * Time: 09:20
 * 门店管理员信息表
 */

namespace app\api\model;


use think\model\concern\SoftDelete;

class Admin extends BaseModel
{
    use SoftDelete;

    protected $hidden = [
        'lin_user_id', 'create_time', 'update_time', 'delete_time',
    ];

    public function img()
    {
        return $this->belongsTo('Image','img_id','id');
    }

    public function adminUser()
    {
        return $this->belongsTo('LinUser','lin_user_id');
    }
}